<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>上缴核销日报表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<jsp:include page="../common/easyui.jsp"></jsp:include>
	<script type="text/javascript">
	//打印预览
 	 function see(){
 			 var mon = $('#mon').datebox('getValue');
        	 var name =encodeURI($("#operName").val());//
        	 var danwei =$("#danwei").val();
        	 if (mon!="" && name!="" && danwei!="") {
				 var url = "<%=path%>/frameset?__report=reports/handDay.rptdesign&__format=html&__navigationbar=false&__parameterpage=false&__showtitle=false&cxdate="+mon+"&opername="+name+"&danwei"+danwei;
	        	$("#mainBirt").attr("src",encodeURI(url));
 	 			}
			 else{
			 $.messager.show({
			 title:'系统提示',
			 msg:'请填写完整信息',
			 timeout:2000,
			 showType:'slide'
    			 });
			 }
 	}
	</script>

  </head>
  
  <body>
  <div id="searchDiv" class="easyui-panel"  title="上缴核销日报表——查询条件" style="background-color:#EBF2FF;" collapsible="true">
		<form id="searchForm" method="post" style="margin-top:10px" action="">
	           <table >
					<tr>
						<td width="5%" align="right">
							<div style="font-family:微软雅黑;font-size:12px;">汇总日期:</div>
						</td>
						<td width="15%" align="left">
							<input class="easyui-datebox" required="required"  type="text"  id="mon" name="mon" style="width:200px;border:1px solid #ccc" />
						</td>
						<td width="5%" align="right">
							<div style="font-family:微软雅黑;font-size:12px;">制表人：</div>
						</td>
						<td width="15%" align="left">
							<input  type="text"  id="operName" name="operName" value="${posoper.operatorName}"  style="width:200px;border:1px solid #ccc" />
						</td>
						<td width="5%" align="right">
							<div style="font-family:微软雅黑;font-size:12px;">制表单位：</div>
						</td>
						<td width="15%" align="left">
							<input value="青海省高等级公路建设管理局"  type="text"  id="danwei" name="danwei" style="width:200px;border:1px solid #ccc" />
						</td>
					</tr>
					</table>
					<div align="center">
					<table >
					<tr></tr>
					<tr></tr>
					<tr>
						<td colspan="2" width="20%" >
							<table>
								<tr>
									<td width="10%" align="center"> <a href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-search"  onclick="see()">查询</a>
									<a href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-redo" onclick="$('#searchForm')[0].reset();" >重置</a>
								</tr>
							</table>
						</td>						
					</tr>
				</table>     
				</div>
		 </form>
	</div>
     <div id="birt" class="easyui-panel"  title="查询结果" style="background-color:#EBF2FF;height: 460"  collapsible="true">
	 <iframe id="mainBirt"  frameborder="0" scrolling="yes" src="" style="width:100%;height:100%;left top repeat"></iframe>
	 </div>
  </body>
</html>
